{
Antonov_Kirill
17.11.2012.
This program is to solve equations.
}
program equations;

{$APPTYPE CONSOLE}

type
  Solver=class
    a, b, c: integer;
    procedure solve;
  end;

procedure Solver.solve;
var
  d, x1, x2: real;
  i: integer;
begin
  i:=0;
  if (a<>0) then
  begin
    d:=b*b-4*a*c;
    if (d>=0) then
    begin
      x1:=(-b+sqrt(d))/2*a;
      x2:=(-b-sqrt(d))/2*a;
      writeln(x1:0:5, ' ');
      if (d>0) then
        writeln(x2:0:5);
    end
    else
      writeln('equation has no solutions');
    i:=1;
  end;
  if (i<>1) then
  begin
    if (a=0) and (b<>0) then
      write(((-c)/b):0:5);
    if (b=0) and (c=0) then
    begin
      write('variable can be any');
      i:=2;
    end;
    if (i<>2) then
    begin
      if (b=0) then
        write('equation has no solutions');
    end;
  end;
end;
var
  s: Solver;
begin
  s:=Solver.Create;
  readln(s.a, s.b, s.c);
  s.solve;
  readln;
end.
